<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en_US" lang="en_US">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- QtnRibbonGallery.qdoc -->
  <title>Qt QtitanRibbon 3.1: RibbonGalleryItem Class Reference</title>
  <link rel="stylesheet" type="text/css" href="style/style.css" />
  <script src="scripts/jquery.js" type="text/javascript"></script>
  <script src="scripts/functions.js" type="text/javascript"></script>
  <script src="./scripts/superfish.js" type="text/javascript"></script>
  <link rel="stylesheet" type="text/css" href="style/superfish.css" />  <script src="./scripts/narrow.js" type="text/javascript"></script>
  <link rel="stylesheet" type="text/css" href="style/narrow.css" />
  <!--[if IE]>
<meta name="MSSmartTagsPreventParsing" content="true">
<meta http-equiv="imagetoolbar" content="no">
<![endif]-->
<!--[if lt IE 7]>
<link rel="stylesheet" type="text/css" href="style/style_ie6.css">
<![endif]-->
<!--[if IE 7]>
<link rel="stylesheet" type="text/css" href="style/style_ie7.css">
<![endif]-->
<!--[if IE 8]>
<link rel="stylesheet" type="text/css" href="style/style_ie8.css">
<![endif]-->
</head>
<body class="" onload="CheckEmptyAndLoadList();">
 <div class="header" id="qtdocheader">
    <div class="content"> 
    <div id="nav-logo">
      <a href="index.html">Home</a></div>
		<div id="narrowsearch"><form onsubmit="return false;" action="" id="qtdocsearch">
		<fieldset>
		<input type="text" value="" id="pageType2" name="searchstring"/>
		 </fieldset>
		</form></div>
    <div id="nav-topright">
      <ul>
      </ul>
    </div>
    <div id="shortCut">
      <ul>
        <li class="shortCut-topleft-inactive"><span><a href="index.html">Home</a></span></li>
        <li class="shortCut-topleft-inactive"><span><a href="classes.html">All&nbsp;Classes</a></span></li>
        <li class="shortCut-topleft-inactive"><span><a href="overviews.html">Overviews</a></span></li>
      </ul>
</div> <ul class="sf-menu sf-js-enabled sf-shadow" id="narrowmenu"> 
		 <li><a href="#">API Lookup</a> 
			 <ul id="topmenuLook"> 
			   <li><a href="qtitan.html">Qtitan Namespace</a></li> 
			   <li><a href="classes.html">Class index</a></li> 
 			  <li><a href="qtitan.html#functions">Function index</a></li> 
			   </ul> 
		 </li> 
 </ul> 
    </div>
  </div>
  <div class="wrapper">
    <div class="hd">
      <span></span>
    </div>
    <div class="bd group">
      <div class="sidebar">
        <div class="searchlabel">
          Search index:</div>
        <div class="search">
          <form id="qtdocsearch" action="" onsubmit="return false;">
            <fieldset>
              <input type="text" name="searchstring" id="pageType" value="" />
            </fieldset>
          </form>
        </div>
        <div class="box first bottombar" id="lookup">
          <h2 title="API Lookup"><span></span>
            API Lookup</h2>
          <div  id="list001" class="list">
          <ul id="ul001" >
              <li class="defaultLink"><a href="qtitan.html">Qtitan Namespace</a></li>
              <li class="defaultLink"><a href="classes.html">Class index</a></li>
              <li class="defaultLink"><a href="qtitan.html#functions">Function index</a></li>
            </ul> 
          </div>
        </div>
      </div>
      <div class="wrap">
        <div class="toolbar">
          <div class="breadcrumb toolblock">
            <ul>
              <li class="first"><a href="index.html">Home</a></li>
              <!--  Bread crumbs goes here -->
              <li><a href="modules.html">Modules</a></li>              <li>QtitanRibbon</li>
              <li>RibbonGalleryItem</li>
            </ul>
          </div>
          <div class="toolbuttons toolblock">
            <ul>
              <li id="smallA" class="t_button">A</li>
              <li id="medA" class="t_button active">A</li>
              <li id="bigA" class="t_button">A</li>
              <li id="print" class="t_button"><a href="javascript:this.print();">
                <span>Print</span></a></li>
            </ul>
          </div>
        </div>
        <div class="content">
<div class="toc">
<h3><a name="toc">Contents</a></h3>
<ul>
<li class="level1"><a href="#public-functions">Public Functions</a></li>
<li class="level1"><a href="#details">Detailed Description</a></li>
</ul>
</div>
<h1 class="title">RibbonGalleryItem Class Reference</h1>
<span class="small-subtitle">(Qtitan::RibbonGalleryItem)<br/></span>
<!-- $$$RibbonGalleryItem-brief -->
<p>RibbonGalleryItem represents one element of the gallery. <a href="#details">More...</a></p>
<!-- @@@RibbonGalleryItem -->
<ul>
<li><a href="qtitan-ribbongalleryitem-members.html">List of all members, including inherited members</a></li>
</ul>
<a name="public-functions"></a>
<h2>Public Functions</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qtitan-ribbongalleryitem.html#RibbonGalleryItem">RibbonGalleryItem</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual </td><td class="memItemRight bottomAlign"><b><a href="qtitan-ribbongalleryitem.html#dtor.RibbonGalleryItem">~RibbonGalleryItem</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="qtitan-ribbongalleryitem.html#caption">caption</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual QVariant </td><td class="memItemRight bottomAlign"><b><a href="qtitan-ribbongalleryitem.html#data">data</a></b> ( int <i>role</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qtitan-ribbongalleryitem.html#draw">draw</a></b> ( QPainter * <i>p</i>, RibbonGallery * <i>gallery</i>, QRect <i>rectItem</i>, bool <i>enabled</i>, bool <i>selected</i>, bool <i>pressed</i>, bool <i>checked</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qtitan-ribbongalleryitem.html#getIndex">getIndex</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QIcon </td><td class="memItemRight bottomAlign"><b><a href="qtitan-ribbongalleryitem.html#icon">icon</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qtitan-ribbongalleryitem.html#isEnabled">isEnabled</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qtitan-ribbongalleryitem.html#isSeparator">isSeparator</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qtitan-ribbongalleryitem.html#isVisible">isVisible</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtitan-ribbongalleryitem.html#setCaption">setCaption</a></b> ( const QString &amp; <i>caption</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qtitan-ribbongalleryitem.html#setData">setData</a></b> ( int <i>role</i>, const QVariant &amp; <i>value</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtitan-ribbongalleryitem.html#setEnabled">setEnabled</a></b> ( bool <i>enabled</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtitan-ribbongalleryitem.html#setIcon">setIcon</a></b> ( const QIcon &amp; <i>icon</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtitan-ribbongalleryitem.html#setSeparator">setSeparator</a></b> ( bool <i>b</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtitan-ribbongalleryitem.html#setSizeHint">setSizeHint</a></b> ( const QSize &amp; <i>size</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtitan-ribbongalleryitem.html#setStatusTip">setStatusTip</a></b> ( const QString &amp; <i>statusTip</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtitan-ribbongalleryitem.html#setToolTip">setToolTip</a></b> ( const QString &amp; <i>caption</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtitan-ribbongalleryitem.html#setVisible">setVisible</a></b> ( bool <i>visible</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual QSize </td><td class="memItemRight bottomAlign"><b><a href="qtitan-ribbongalleryitem.html#sizeHint">sizeHint</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="qtitan-ribbongalleryitem.html#statusTip">statusTip</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="qtitan-ribbongalleryitem.html#toolTip">toolTip</a></b> () const</td></tr>
</table>
<a name="details"></a>
<!-- $$$RibbonGalleryItem-description -->
<div class="descr">
<h2>Detailed Description</h2>
<p>RibbonGalleryItem represents one element of the gallery.</p>
</div>
<!-- @@@RibbonGalleryItem -->
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$RibbonGalleryItem[overload1]$$$RibbonGalleryItem -->
<h3 class="fn"><a name="RibbonGalleryItem"></a>RibbonGalleryItem::RibbonGalleryItem ()</h3>
<p>Constructs <a href="qtitan-ribbongalleryitem.html">RibbonGalleryItem</a>.</p>
<!-- @@@RibbonGalleryItem -->
<!-- $$$~RibbonGalleryItem[overload1]$$$~RibbonGalleryItem -->
<h3 class="fn"><a name="dtor.RibbonGalleryItem"></a>RibbonGalleryItem::~RibbonGalleryItem ()<tt> [virtual]</tt></h3>
<p>Destructor of the <a href="qtitan-ribbongallerygroup.html">RibbonGalleryGroup</a> object.</p>
<!-- @@@~RibbonGalleryItem -->
<!-- $$$caption[overload1]$$$caption -->
<h3 class="fn"><a name="caption"></a><a href="http://qt.nokia.com/doc/4.7/qstring.html">QString</a> RibbonGalleryItem::caption () const</h3>
<p>Returns the caption of the item.</p>
<p>See also <a href="qtitan-ribbongalleryitem.html#setCaption">setCaption</a>().</p>
<!-- @@@caption -->
<!-- $$$data[overload1]$$$dataint -->
<h3 class="fn"><a name="data"></a><a href="http://qt.nokia.com/doc/4.7/qvariant.html">QVariant</a> RibbonGalleryItem::data ( int <i>role</i> ) const<tt> [virtual]</tt></h3>
<p>See also <a href="qtitan-ribbongalleryitem.html#setData">setData</a>().</p>
<!-- @@@data -->
<!-- $$$draw[overload1]$$$drawQPainter*RibbonGallery*QRectboolboolboolbool -->
<h3 class="fn"><a name="draw"></a>void RibbonGalleryItem::draw ( <a href="http://qt.nokia.com/doc/4.7/qpainter.html">QPainter</a> * <i>p</i>, <a href="qtitan-ribbongallery.html">RibbonGallery</a> * <i>gallery</i>, <a href="http://qt.nokia.com/doc/4.7/qrect.html">QRect</a> <i>rectItem</i>, bool <i>enabled</i>, bool <i>selected</i>, bool <i>pressed</i>, bool <i>checked</i> )<tt> [virtual]</tt></h3>
<!-- @@@draw -->
<!-- $$$getIndex[overload1]$$$getIndex -->
<h3 class="fn"><a name="getIndex"></a>int RibbonGalleryItem::getIndex () const</h3>
<p>Returns the index of this item in the gallery group.</p>
<!-- @@@getIndex -->
<!-- $$$icon[overload1]$$$icon -->
<h3 class="fn"><a name="icon"></a><a href="http://qt.nokia.com/doc/4.7/qicon.html">QIcon</a> RibbonGalleryItem::icon () const</h3>
<p>Returns the icon of the item.</p>
<p>See also <a href="qtitan-ribbongalleryitem.html#setIcon">setIcon</a>().</p>
<!-- @@@icon -->
<!-- $$$isEnabled[overload1]$$$isEnabled -->
<h3 class="fn"><a name="isEnabled"></a>bool RibbonGalleryItem::isEnabled () const</h3>
<!-- @@@isEnabled -->
<!-- $$$isSeparator[overload1]$$$isSeparator -->
<h3 class="fn"><a name="isSeparator"></a>bool RibbonGalleryItem::isSeparator () const</h3>
<p>Returns true if the item is the separator.</p>
<!-- @@@isSeparator -->
<!-- $$$isVisible[overload1]$$$isVisible -->
<h3 class="fn"><a name="isVisible"></a>bool RibbonGalleryItem::isVisible () const</h3>
<!-- @@@isVisible -->
<!-- $$$setCaption[overload1]$$$setCaptionconstQString& -->
<h3 class="fn"><a name="setCaption"></a>void RibbonGalleryItem::setCaption ( const <a href="http://qt.nokia.com/doc/4.7/qstring.html">QString</a> &amp; <i>caption</i> )</h3>
<p>Sets the caption of the item.</p>
<p>See also <a href="qtitan-ribbongalleryitem.html#caption">caption</a>().</p>
<!-- @@@setCaption -->
<!-- $$$setData[overload1]$$$setDataintconstQVariant& -->
<h3 class="fn"><a name="setData"></a>void RibbonGalleryItem::setData ( int <i>role</i>, const <a href="http://qt.nokia.com/doc/4.7/qvariant.html">QVariant</a> &amp; <i>value</i> )<tt> [virtual]</tt></h3>
<p>See also <a href="qtitan-ribbongalleryitem.html#data">data</a>().</p>
<!-- @@@setData -->
<!-- $$$setEnabled[overload1]$$$setEnabledbool -->
<h3 class="fn"><a name="setEnabled"></a>void RibbonGalleryItem::setEnabled ( bool <i>enabled</i> )</h3>
<p>See also <a href="qtitan-ribbongalleryitem.html#isEnabled">isEnabled</a>().</p>
<!-- @@@setEnabled -->
<!-- $$$setIcon[overload1]$$$setIconconstQIcon& -->
<h3 class="fn"><a name="setIcon"></a>void RibbonGalleryItem::setIcon ( const <a href="http://qt.nokia.com/doc/4.7/qicon.html">QIcon</a> &amp; <i>icon</i> )</h3>
<p>Sets the icon of the item.</p>
<p>See also <a href="qtitan-ribbongalleryitem.html#icon">icon</a>().</p>
<!-- @@@setIcon -->
<!-- $$$setSeparator[overload1]$$$setSeparatorbool -->
<h3 class="fn"><a name="setSeparator"></a>void RibbonGalleryItem::setSeparator ( bool <i>b</i> )</h3>
<p>Sets the representation for the item as a separator if parameter <i>b</i> is true.</p>
<p>See also <a href="qtitan-ribbongalleryitem.html#isSeparator">isSeparator</a>().</p>
<!-- @@@setSeparator -->
<!-- $$$setSizeHint[overload1]$$$setSizeHintconstQSize& -->
<h3 class="fn"><a name="setSizeHint"></a>void RibbonGalleryItem::setSizeHint ( const <a href="http://qt.nokia.com/doc/4.7/qsize.html">QSize</a> &amp; <i>size</i> )</h3>
<p>Sets the <i>size</i> hint for the item.</p>
<p>See also <a href="qtitan-ribbongalleryitem.html#sizeHint">sizeHint</a>().</p>
<!-- @@@setSizeHint -->
<!-- $$$setStatusTip[overload1]$$$setStatusTipconstQString& -->
<h3 class="fn"><a name="setStatusTip"></a>void RibbonGalleryItem::setStatusTip ( const <a href="http://qt.nokia.com/doc/4.7/qstring.html">QString</a> &amp; <i>statusTip</i> )</h3>
<p>See also <a href="qtitan-ribbongalleryitem.html#statusTip">statusTip</a>().</p>
<!-- @@@setStatusTip -->
<!-- $$$setToolTip[overload1]$$$setToolTipconstQString& -->
<h3 class="fn"><a name="setToolTip"></a>void RibbonGalleryItem::setToolTip ( const <a href="http://qt.nokia.com/doc/4.7/qstring.html">QString</a> &amp; <i>caption</i> )</h3>
<p>Sets the tooltip of the item.</p>
<p>See also <a href="qtitan-ribbongalleryitem.html#toolTip">toolTip</a>().</p>
<!-- @@@setToolTip -->
<!-- $$$setVisible[overload1]$$$setVisiblebool -->
<h3 class="fn"><a name="setVisible"></a>void RibbonGalleryItem::setVisible ( bool <i>visible</i> )</h3>
<p>See also <a href="qtitan-ribbongalleryitem.html#isVisible">isVisible</a>().</p>
<!-- @@@setVisible -->
<!-- $$$sizeHint[overload1]$$$sizeHint -->
<h3 class="fn"><a name="sizeHint"></a><a href="http://qt.nokia.com/doc/4.7/qsize.html">QSize</a> RibbonGalleryItem::sizeHint () const<tt> [virtual]</tt></h3>
<p>Returns the size hint for the item.</p>
<p>See also <a href="qtitan-ribbongalleryitem.html#setSizeHint">setSizeHint</a>().</p>
<!-- @@@sizeHint -->
<!-- $$$statusTip[overload1]$$$statusTip -->
<h3 class="fn"><a name="statusTip"></a><a href="http://qt.nokia.com/doc/4.7/qstring.html">QString</a> RibbonGalleryItem::statusTip () const</h3>
<p>See also <a href="qtitan-ribbongalleryitem.html#setStatusTip">setStatusTip</a>().</p>
<!-- @@@statusTip -->
<!-- $$$toolTip[overload1]$$$toolTip -->
<h3 class="fn"><a name="toolTip"></a><a href="http://qt.nokia.com/doc/4.7/qstring.html">QString</a> RibbonGalleryItem::toolTip () const</h3>
<p>Returns the tooltip of the item.</p>
<p>See also <a href="qtitan-ribbongalleryitem.html#setToolTip">setToolTip</a>().</p>
<!-- @@@toolTip -->
</div>
        <!-- /div -->
        <div class="feedback t_button">
          </div>
      </div>
    </div>
    <div class="ft">
      <span></span>
    </div>
  </div> 
  <div class="footer">
    <p>
      <acronym title="Copyright">&copy;</acronym> 2009-2013 Developer Machines<br><br>      Nokia, Qt and their respective logos are trademarks of Nokia Corporation 
      in Finland and/or other countries worldwide.</p>
    <p>
      All other trademarks are property of their respective owners. <a title="Privacy Policy"
        href="http://www.devmachines.com/company/privacy-policy.html">Privacy Policy</a></p>
  </div>
  <div id="blurpage">
  </div>
  <!--/div -->
<script type="text/javascript">
  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-17002018-1']);
  _gaq.push(['_trackPageview']);
  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();
</script>
  <script src="scripts/functions.js" type="text/javascript"></script>
  <script type="text/javascript">
  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-17002018-1']);
  _gaq.push(['_trackPageview']);
  (function() {
  var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
  ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
  var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();
  </script>
</body>
</html>
